package com.cgwx.service;

import com.cgwx.entity.Room;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public interface IRoomService {

    String getCompanyRoomId();

    List<Room> getRoom(Room room);

    String getPersonalRoom(String account);

    String getDeptRoom(String account);

    Room getRoom(String account, String deptId, String type);

    String updateRoomById(Room room);

    String updateAuthRoomById(Room room);

    String insertStaffRoom(Room room);

    String insertDeptRoom(Room room);

    boolean deleteFreeRoom(String entityRoom);

    @Transactional
    String insertFreeRoom(String account, String name, String roomName, List<String> accountList);

    String getUsedSpace(String account, String type);

    String generateId();
}
